/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bookset.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 学校Entity
 * @author xb.han
 * @version 2015-11-04
 */
public class BkPlace extends DataEntity<BkPlace> {

//	private String id;
	private String placeid;
	private String gcdName;//存放地名称(例:图书馆2楼,或者配置成书库概念，如旧书库，废弃库）
	private String gcdCode;//存放地Code
	private String share;//是否支持通借通还（0：不支持1：支持）
	private String isBorrow;//是否允许流通(0：不允许 1：允许)
	private String isCount;//是否计入资产统计(0：不计入 1：计入)
	private String isDefault;//是否为你默认书库(0：不 1：是)
	public BkPlace(){
		super();
	}
	public BkPlace(String id){
		super(id);
	}

	public String getGcdName() {
		return gcdName;
	}

	public void setGcdName(String gcdName) {
		this.gcdName = gcdName;
	}

	public String getGcdCode() {
		return gcdCode;
	}

	public void setGcdCode(String gcdCode) {
		this.gcdCode = gcdCode;
	}

	@Override
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}


	public String getShare() {
		return share;
	}

	public void setShare(String share) {
		this.share = share;
	}

	public String getIsBorrow() {
		return isBorrow;
	}

	public void setIsBorrow(String isBorrow) {
		this.isBorrow = isBorrow;
	}

	public String getIsCount() {
		return isCount;
	}

	public void setIsCount(String isCount) {
		this.isCount = isCount;
	}
	public String getPlaceid() {
		return placeid;
	}

	public void setPlaceid(String placeid) {
		this.placeid = placeid;
	}

	public String getIsDefault(){
		return isDefault;
	}

	public void setIsDefault(String isDefault){
		this.isDefault = isDefault;
	}

	@Override
	public boolean equals(Object o){
		if(this == o) return true;
		if(o == null || getClass() != o.getClass()) return false;
		if(!super.equals(o)) return false;

		BkPlace bkPlace = (BkPlace)o;

		if(placeid != null ? !placeid.equals(bkPlace.placeid) : bkPlace.placeid != null) return false;
		if(gcdName != null ? !gcdName.equals(bkPlace.gcdName) : bkPlace.gcdName != null) return false;
		if(gcdCode != null ? !gcdCode.equals(bkPlace.gcdCode) : bkPlace.gcdCode != null) return false;
		if(share != null ? !share.equals(bkPlace.share) : bkPlace.share != null) return false;
		if(isBorrow != null ? !isBorrow.equals(bkPlace.isBorrow) : bkPlace.isBorrow != null) return false;
		if(isCount != null ? !isCount.equals(bkPlace.isCount) : bkPlace.isCount != null) return false;
		return isDefault != null ? isDefault.equals(bkPlace.isDefault) : bkPlace.isDefault == null;
	}

	@Override
	public int hashCode(){
		int result = placeid != null ? placeid.hashCode() : 0;
		result = 31 * result + (gcdName != null ? gcdName.hashCode() : 0);
		result = 31 * result + (gcdCode != null ? gcdCode.hashCode() : 0);
		result = 31 * result + (share != null ? share.hashCode() : 0);
		result = 31 * result + (isBorrow != null ? isBorrow.hashCode() : 0);
		result = 31 * result + (isCount != null ? isCount.hashCode() : 0);
		result = 31 * result + (isDefault != null ? isDefault.hashCode() : 0);
		return result;
	}
}